<ion-view view-title="{{language == 0?'我的订单':'My Orders'}}">
  <ion-content class="normal_box bg" delegate-handle="mainScroll" overflow-scroll="false">
    <div class="top_header">
      <span class="header_left" ng-click="backhome()">
        <img src="img/backhome.png" class="backhome" />
      </span>
      <i class="iconfont icon-Path5 top_icon2" ng-click="gotoCenter()"></i>
    </div>

    <!-- 有订单记录 -->
    <div class="ticket_pro mb12" ng-repeat="list in orders" ng-if="orders"  ng-click="gotoPay(list)">
      <p class="ticket_line">
        <span class="ticket_leftspan" ng-class="{'f12_i':language == 1}">{{language==0?'订单编号:':'Order No.'}}</span>
        <span class="ticket_rightspan color618771" ng-class="{'f12_i':language == 1}" ng-if="list.status == 0">{{language==0?'未支付':'Unpaid'}}</span>
        <span class="ticket_rightspan colorD29959" ng-class="{'f12_i':language == 1}" ng-if="list.status == 1">{{language==0?'待发货':'Undelivered'}}</span>
        <span class="ticket_rightspan color9B9B9B" ng-class="{'f12_i':language == 1}" ng-if="list.status == 2">{{language==0?'已发货':'Delivered'}}</span>
        <span class="ticket_rightspan color9B9B9B" ng-class="{'f12_i':language == 1}" ng-if="list.status == 3">{{language==0?'已完成':'Complete'}}</span>
        <span class="ticket_rightspan colorD29959" ng-class="{'f12_i':language == 1}" ng-if="list.status == 4">{{language==0?'库存不足':'Out of Stock'}}</span>
        <span class="ticket_rightspan colorD29959" ng-class="{'f12_i':language == 1}" ng-if="list.status == 5">{{language==0?'交易关闭':'Closed'}}</span>
        <span class="ticket_rightspan colorD29959" ng-class="{'f12_i':language == 1}" ng-if="list.status == 6">{{language==0?'已取消':' Cancelled'}}</span>
        {{list.order_num}}
      </p>

      <p class="ticket_line mt7">
        <span class="ticket_leftspan" ng-class="{'f12_i':language == 1}">{{language==0?'下单时间:':'Order Time:'}}</span>
        {{list.create_time*1000|date:'yyyy.MM.dd HH:mm'}}
      </p>

      <div class="ticket_box1" ng-repeat="list1 in list.products">
        <div class="div_img1" style="background-image: url({{fullPath(list1.product_cover)}});">
        </div>
        <p class="ticket_line2">{{language==0?list1.product_name:list1.product_name_en}}</p>
        <span class="ticket_type">{{language==0?list1.attr_name:list1.attr_name}}</span>

        <span class="ticket_price color_black" ng-if="list1.activity_price != 0&&list1.activity_price!=list1.price"><span class="tdlt f14 grayf"><i class="f14 grayf">￥</i>{{list1.price}} </span><i> ￥</i>{{list1.activity_price}}</span>

        <span class="ticket_price color_black" ng-if="list1.activity_price == 0||(list1.activity_price==list1.price)"><i>￥</i>{{list1.price}}</span>

        <span class="ticket_num"><i>X</i>{{list1.quantity}}</span>
      </div>

      <div class="ticket_footer">
        <span class="color_black">{{language==0?'合计':'Total'}}  ￥{{list.total}}</span>
        <span class="ticket_pay" ng-if="list.status == 0" ng-click="gotoPay(list)">{{language == 0?'支付':'Pay'}}</span>
      </div>
    </div>

  </ion-content>

  <!-- 无订单 -->
  <div class="noinfo_span" ng-if="!orders">
    暂无订单
  </div>

</ion-view>